//
//  playerTableviewHeader.h
//  SoundPill
//
//  Created by 宋旭东 on 16/8/23.
//  Copyright © 2016年 宋旭东. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Player_TagView.h"
#import "Player_imageView.h"
#import "Player_waveform.h"
#import "Player_preWaveform.h"
#import "Player_ShowModel.h"
#import "DOUAudioStreamer.h"
#import "Track.h"
#import "danmuView.h"
typedef void (^TouchUser)();
typedef void (^touchPay)(NSString *workId, UIImage *firstImage, NSArray *tags, NSArray *priceArray, NSString *price, NSString *loveCount, NSString *commentCount);
typedef void (^touchComment)();
@interface playerTableviewHeader : UIView<UIScrollViewDelegate>
//数据
@property (strong, nonatomic) NSArray *images;
@property (strong, nonatomic) NSArray *text;
@property (strong, nonatomic) NSArray *imageTimeline;
@property (strong, nonatomic) NSArray *persons;
@property (strong, nonatomic) NSArray *tags;
@property (strong, nonatomic) NSArray *priceArray;
@property (strong, nonatomic) NSMutableArray *commentArray;
@property (strong, nonatomic) NSMutableArray *showImageArray;
@property (strong, nonatomic) NSMutableArray *waveArray;
@property (strong, nonatomic) NSMutableArray *textTimeLine;
@property (strong, nonatomic) NSMutableArray *textContent;
@property (strong, nonatomic) DOUAudioStreamer *streamer;
@property (strong, nonatomic) Track *track;
@property (strong, nonatomic) NSTimer *timer;
@property (strong, nonatomic) NSString *workID;
@property (strong, nonatomic) NSString *uid;
@property (strong, nonatomic) NSString *waveform;
@property (strong, nonatomic) NSString *tempFile;
@property (strong, nonatomic) NSString *duration;
@property (strong, nonatomic) NSString *love_count;
@property (assign, nonatomic) BOOL isPrivate;
@property (strong, nonatomic) NSNumber *isLove;
@property (strong, nonatomic) NSNumber *commentCount;
//界面
@property (strong, nonatomic) UIView *userbackgroundView;
@property (strong, nonatomic) UIImageView *userCoverView;
@property (strong, nonatomic) UILabel *userNameLabel;
@property (strong, nonatomic) UILabel *userSexLabel;
@property (strong, nonatomic) UILabel *userOccupationLabel;
@property (strong, nonatomic) UIButton *attentionButton;
@property (strong, nonatomic) UIButton *playerControlButton;
@property (strong, nonatomic) Player_TagView *tagView;
@property (strong, nonatomic) Player_imageView *showImage;
@property (strong, nonatomic) danmuView *rolling;
//波形
@property (strong, nonatomic) UIScrollView *waveScroll;
@property (strong, nonatomic) UILabel *audiotime;
@property (strong, nonatomic) Player_waveform *backgroundWave;
@property (strong, nonatomic) Player_preWaveform *prossesWave;
//block
@property (copy, nonatomic) TouchUser userBlock;
@property (copy, nonatomic) touchPay payBlock;
@property (copy, nonatomic) touchComment commentBlock;
- (void)resetUserSubviewWithAvatar:(NSURL *)avatarurl userName:(NSString *)userName userSex:(NSString *)userSex userOccupation:(NSString *)userOccupation relationState:(NSString *)relationState;
- (void)loadLikeCount:(NSString *)likeCount commentCount:(NSString *)commentCount;
- (void)reloadViews:(Player_ShowModel *)playModel;
- (void)refresh;
@end
